import os
from typing import Dict, Any
from tensorflow.python.keras import models


def mkdir(path: str) -> None:
    if os.path.exists(path) is not True:
        os.makedirs(path)


def insert_database(db_conn: Any, table: str, data: Dict[str, str]) -> None:
    keys = ', '.join(data.keys())
    holder = ', '.join(['?'] * len(data.keys()))
    command = 'insert into {} ({}) values ({})'.format(table, keys, holder)
    values = list(data.values())
    try:
        db_conn.execute(command, values)
    except Exception as error:
        print(error)
    db_conn.commit()


def training(model: models.Model, data: , param: Dict[str, Any]):



if __name__ == '__main__':
    mkdir('./Test/sub1')

